<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$lang.home}{if $ur_here} - {$ur_here} {/if}</title>
<meta name="Copyright" content="Douco Design." />
<link href="templates/public.css" rel="stylesheet" type="text/css">
{include file="javascript.htm"}
</head>
<body>
<div id="dcWrap"> {include file="header.htm"}
 <div id="dcLeft">{include file="menu.htm"}</div>
 <div id="dcMain">
  <div class="mainBox simpleModule" style="{$workspace.height}">
   <h3>首页图库</h3>
   <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr>
     <th>添加图片</th>
     <th>图片列表</th>
    </tr>
    <tr>
     <td width="350" valign="top"><form action="show.php?rec={if $show}update{else}insert{/if}"{if $show} class="formEdit"{/if} method="post" enctype="multipart/form-data">
       <div class="formBasic">
        <dl>
         <dt>语言</dt>
         <dd>
         <dd>
          <select name="lang">
           <!-- {if $show.lang eq 'en'} -->
           <option value="zh">中文</option>
           <option value="en" selected="selected">英文</option>
           <!-- {else} -->
           <option value="zh" selected="selected">中文</option>
           <option value="en">英文</option>
           <!-- {/if} -->
          </select>
         </dd>
        </dl>
        <dl>
         <dt>图片名称</dt>
         <dd>
          <input type="text" name="show_name" value="{$show.show_name}" size="20" class="inpMain" />
         </dd>
        </dl>
        <dl>
         <dt>图片上传</dt>
         <dd>
          <input type="file" name="show_img" class="inpFlie" />
          {if $show.show_img}<a href="{$show.show_img}" target="_blank"><img src="images/icon_yes.png"></a>{else}{/if} </dd>
        </dl>
        <dl>
         <dt>{$lang.show_link}</dt>
         <input type="text" name="show_link" value="{$show.show_link}" size="40" class="inpMain" />
         </dd>
        </dl>
        <dl>
         <dt>{$lang.sort}</dt>
         <dd>
         <dd>
          <input type="text" name="sort" value="{if $show.sort}{$show.sort}{else}50{/if}" size="20" class="inpMain" />
         </dd>
        </dl>
        <dl>
         <!-- {if $show} --> 
         <a href="show.php" class="btnGray">{$lang.cancel}</a>
         <input type="hidden" name="id" value="{$show.id}">
         <!-- {/if} -->
         <input type="hidden" name="token" value="{$token}" />
         <input name="submit" class="btn" type="submit" value="{$lang.btn_submit}" />
        </dl>
       </div>
      </form></td>
     <td valign="top"><table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
       <tr>
        <td width="100"><b>图片名称</b></td>
        <td></td>
        <td width="50" align="center"><b>语言</b></td>
        <td width="50" align="center"><b>{$lang.sort}</b></td>
        <td width="80" align="center"><b>{$lang.handler}</b></td>
       </tr>
       <!-- {foreach from=$show_list item=show_list} -->
       
        <tr{if $show_list.id eq $id} class="active"{/if}>
       
       
        <td><a href="{$show_list.show_img}" target="_blank"><img src="{$show_list.thumb}" width="100" /></a></td>
        <td>{$show_list.show_name}</td>
        <!-- {if $show_list.lang eq "zh"} -->
        <td align="center">中文</td>
        <!-- {else} -->
        <td align="center">英文</td>
        <!-- {/if} -->
        <td align="center">{$show_list.sort}</td>
        <td align="center"><a href="show.php?rec=edit&id={$show_list.id}">{$lang.edit}</a> | <a href="show.php?rec=del&id={$show_list.id}">{$lang.del}</a></td>
       </tr>
       <!-- {/foreach} -->
      </table></td>
    </tr>
   </table>
  </div>
 </div>
 {include file="footer.htm"} </div>
</body>
</html>